<div class="devui-demo-container" dAnchorBox dAnchorHashSupport [view]="{ top: 180, bottom: 0 }">
  <d-demo-nav [navItems]="navItems"></d-demo-nav>

  <div class="devui-demo-example" [dAnchor]="'card-basic'">
    <div class="devui-demo-title">{{ 'components.card.basicDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="components-card-basic" [sourceData]="CardDemoBasic">
      <d-basic demo></d-basic>
    </d-codebox>
  </div>

  <div class="devui-demo-example" [dAnchor]="'card-interactive-usage'">
    <div class="devui-demo-title">{{ 'components.card.cardInteractiveDemo.title' | translate }}</div>
    <d-codebox id="components-card-card-interactive" [sourceData]="cardInteractiveSourceData">
      <d-card-card-interactive demo></d-card-card-interactive>
    </d-codebox>
  </div>

  <div class="devui-demo-example" [dAnchor]="'card-with-media'">
    <div class="devui-demo-title">{{ 'components.card.mediaDemo.title' | translate }}</div>
    <div class="devui-demo-text">{{ 'components.card.mediaDemo.description' | translate }}</div>
    <d-codebox id="components-card-with-media" [sourceData]="CardDemoWithMedia">
      <d-with-media demo></d-with-media>
    </d-codebox>
  </div>

  <div class="devui-demo-example" [dAnchor]="'card-custom'">
    <div class="devui-demo-title">{{ 'components.card.customDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="components-card-custom" [sourceData]="CardDemoCustom">
      <d-custom demo></d-custom>
    </d-codebox>
  </div>
</div>
